//单独的路由模块 : 员工
//导入组件
import Layout from '@/layout'
import employees from '@/views/employees'

export default {
  path: '/employees',
  component: Layout,
  children: [{
      path: '',
      component: employees,
      name: 'employees',
      meta: {
        title: '员工',
        icon: 'people'
    }    
    },
    {
      path: 'import',
      name: 'import',
      hidden: true,
      component: () => import('@/views/import'),
      meta: {
        title: '导入数据',
        icon: 'people'
      }
    }, {
      path: 'detail', //query传参 动态路由传参
      name: 'detail',
      hidden: true,
      component: () => import('@/views/employees/detail'),
      meta: {
        title: '员工详情',
        icon: 'people'
      }
    },
    {
      path: 'print/:id',//动态路由
      component: () => import('@/views/employees/print'),//按需加载
      hidden:true,
      meta: {
        title: '打印',
        icon:'people'
      }
    }

  ]
}
